<?php

	include 'cpr/cproject.php';

	CoreProject::Using('db.mysql');

	$_db_config = new cpr_Db_SqlConfig('localhost', 'root', 'root');
	$_db_connector = new cpr_Db_MySql($_db_config);

	if ($_db_connector->Query('SELECT * FROM test_table'))
	{
		$_i = 0;
		$_row = null;
		while (false !== ($_row = $_db_connector->GetNextRecord()))
		{
			echo ++$_i.') '.$_row->test_column;
		}
	}
	else
	{
		echo $_db_connector->GetError();
	}
